﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DeXrm.Win.Publish.Models;
using DeXrm.Win.Publish.Views;

namespace DeXrm.Win.Publish.Controllers
{
    public class ControllerFrmMain : IControllerFrmMain
    {
        private IModelFrmMain _model;
        private IView _view;

        public ControllerFrmMain(IView view, IModelFrmMain model)
        {
            _view = view;
            _model = model;
            _view.setController(this);
        }

        public void ChangeTheme(Ribbon ribbonName)
        {
            _model.LoadEventArgs(ribbonName);
        }
    }
}
